-- GENERATED SPELL FOR [Ango'rosh Sentry] --


function spell0_20443(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20443', 628, 1)
end

function spell1_20443(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(13730,pUnit)
pUnit:RegisterEvent('Sorts_20443', 30302, 1)
end

function Sorts_20443(pUnit, Event)
local choix_sorts_20443 = math.random(0, 1)
if choix_sorts_20443 == 0 then
pUnit:RegisterEvent('spell0_20443', 1, 1)
end
if choix_sorts_20443 == 1 then
pUnit:RegisterEvent('spell1_20443', 1, 1)
end
end

function mob20443_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20443', math.random(1500, 3000), 1)
end

function mob20443_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20443_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20443_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20443, 1, 'mob20443_Action')
RegisterUnitEvent(20443, 2, 'mob20443_Leave')
RegisterUnitEvent(20443, 3, 'mob20443_Kill')
RegisterUnitEvent(20443, 4, 'mob20443_Die')
